namespace DesignPattern.Structural.Bridge
{
    /// <summary>
    /// 桥接模式
    /// </summary>
    public class BridgePattern
    {
        public static void Test()
        {
            AbstractSharp sharp = new Square(new RedColor());
            System.Console.WriteLine(sharp.Show());

            sharp = new Rectangle(new GreenColor());
            System.Console.WriteLine(sharp.Show());

            sharp = new Circular(new YellowColor());
            System.Console.WriteLine(sharp.Show());
        }
    }
}